<!-- 登陆后始终显示的页面顶部那个栏 -->
<template>
  <el-row class="center" type="flex" justify="space-between" align="middle">
    <el-col :span="3"></el-col>
    <el-col :span="6" class="grid-content ep-bg-purple-light">
      </el-col>
    <el-col :span="2" class="grid-content ep-bg-purple">
      <el-row class="center" type="flex" justify="center" align="middle">
        <el-col :span="12"> <el-icon style="width: 30px; height: 30px;"><SwitchButton style="width: 100%; height: 100%;" /></el-icon></el-col>
        <el-col :span="12" class="grid-content" @click='toUser()'><el-avatar> user </el-avatar></el-col>
      </el-row>
    </el-col>



  </el-row>
</template>
<script>
export default {

  name: 'Header',
  props: {
    msg: String
  },
  methods:{

    toUser(){
      this.$router.push({name:"user"})
    }
  }
}
</script>